<html lang="en" xmlns:th="http://www.thymeleaf.org">
<body>
<table border="1px solid red" >
    <tr>
        <td>id</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>爱好</td>
    </tr>
    <tr th:each="list : ${list}">
        <td th:text="${list.id}"></td>
        <td th:text="${list.name}"></td>
        <td th:text="${list.age}"></td>
        <td th:text="${list.hobby}"></td>
    </tr>

</table>
</body>
</html>